package fefteen;

import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;

import javax.swing.*;

public class code extends JFrame
{
	public code()
	{
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		this.setSize(500, 500);
		
		final JPanel panel = new JPanel();
		this.getContentPane().add(panel);
		panel.setLayout(null);
		
JButton massM [][] = new JButton[4][];
massM[0]= new JButton [4];
massM[1]= new JButton [4];
massM[2]= new JButton [4];
massM[3]= new JButton [4];
		
int t = 1;

		for(int i=0;i<4;i++)
		{
			for(int j=0;j<4;j++)
			{
				if (j!=3 || i!=3)
				{

				
				massM [i][j]= new JButton(String.valueOf(t));
				massM [i][j].setLocation(j*101, i*101);
				massM [i][j].setSize(100, 100);
				panel.add(massM [i][j]);
				t++;
				}
			}
		}
		
	    JButton button17 = new JButton("start");
	}
}



